package top.rish.universe.core.plugin;


import lombok.Getter;

import java.util.Properties;

@Getter
public class PluginConfig {

    String pluginId  ;
    String pluginVersion ;
    String viewSuffix  ;
    String renderName  ;

    public PluginConfig(Properties props) {
        if(props!=null){
            this.pluginId = props.getProperty("plugin.id");
            this.pluginVersion = props.getProperty("plugin.version");
            this.viewSuffix = props.getProperty("plugin.view-suffix",".ftl");
            this.renderName = props.getProperty("plugin.render-name","FreemarkerRender");
        }
    }
}
